package com.pengtu.utils.jbpm.rollback;

import org.jbpm.api.*;

public class TaskRollbackService {
	private TaskService taskService = null;
	
	public TaskRollbackService(TaskService taskService){
		this.taskService = taskService;
	}

	public void completeTaskRollback(String taskId, String rollbackToActName) {
		taskService.completeTask(taskId, rollbackToActName);
		//可以考虑清除历史痕迹、补偿业务损失
	}
}
